package ctrs.dao;

import ctrs.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    public User getUserByMessage(@Param("account") String account,@Param("password") String password);
    public List<User> getAllUser(@Param("userName") String userName);
    public int addUser(User user);
    public User getUpdateUser(String userId);
    public int editUser(User user);
    public int deleteUser(String userId);
}
